package types

// 新增参数
type DemoAddRequest struct {
	Hobby []string          `json:"hobby,optional" form:"hobby,optional"`
	Spec  map[string]string `json:"spec,optional" form:"spec,optional"`
}

// 编辑参数
type DemoEditRequest struct {
	Id    uint16            `json:"id,optional" form:"id,optional"`
	Hobby []string          `json:"hobby,optional" form:"hobby,optional"`
	Spec  map[string]string `json:"spec,optional" form:"spec,optional"`
}

type DemoQueryRequest struct {
	Id        uint16 `json:"id,optional" form:"id,optional"`
	Hobby     string `json:"hobby,optional" form:"hobby,optional"`
	Spec      string `json:"spec,optional" form:"spec,optional"`
	SortField string `json:"sort_field,optional" form:"sort_field,optional"`
	SortType  string `json:"sort_type,optional" form:"sort_type,optional"`
	Page      uint8  `json:"page,optional" form:"page,optional"`
	PageSize  uint8  `json:"page_size,optional" form:"page_size,optional"`
}
